package com.example.comment_oa.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName invoice
 */
@TableName(value ="invoice")
@Data
public class Invoice implements Serializable {
    /**
     * 发票ID
     */
    @TableId(type = IdType.AUTO)
    private Integer invoiceId;

    /**
     * 发票号码(唯一)
     */
    private String invoicePhone;

    /**
     * 开票日期
     */
    @JsonFormat(pattern ="yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date invoiceTime;

    /**
     * 销售方
     */
    private String invoiceSeller;

    /**
     * 加穗合计
     */
    private Double invoiceJshj;

    /**
     * 发票真伪
     */
    private Integer invoiceAuthenticity;

    /**
     * 添加日期
     */
    @JsonFormat(pattern ="yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date addTime;

    /**
     * 发票状态
     */
    private Integer invoiceState;

    /**
     * 发票图片路径
     */
    private String invoicePicture;

    /**
     * 备注说明
     */
    private String invoiceRemarks;

    /**
     * 发票员工ID
     */
    private String empId;

    /**
     * 发票类型ID
     */
    private Integer typeId;

    @TableField(exist = false)
    private InvoiceType invoiceType;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}